C#
Parameters
- source
- The byte array.
- encoding
- Encoding.
- detectEncodingFromByteOrderMarks
true
if the instance contains prefix that determines the encoding; else –false
.
Return Value
A System.String instance that is a string representation of the source byte array in the encoding encoding. If detectEncodingFromByteOrderMarks istrue
, the prefix that determines the encoding will be added to the System.String instance.Overloaded method.
The extension method for the System.Byte class.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2